﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel.Composition;
using Com.JJ1369.HumanResource.Department.Interface;

namespace Com.JJ1369.HumanResource.Department.View
{
    [Export("DepartmentTypeView")]
    [PartCreationPolicy(System.ComponentModel.Composition.CreationPolicy.NonShared)]
    public partial class DepartmentTypeView : UserControl
    {
        [ImportingConstructor]
        public DepartmentTypeView(IDepartmentTypeViewModel viewModel)
        {
            InitializeComponent();
            this.DataContext = viewModel;
        }


        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            this.ItemName.GetBindingExpression(TextBox.TextProperty).UpdateSource();
        }

        private void btnSave_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
